json.result   true
json.message  "获取商品列表成功"
json.data @skus do |sku|
  json.sku_id sku.id
  json.id                     sku.spu.id
  json.name                   "#{sku.spu.name}#{sku.name}"
  json.sales_volume           sku.spu.sales_volume
  json.avatar                 sku.spu.avatar.url("50percent")
  json.description            sku.spu.description
  json.published              sku.spu.published
  json.promotion              sku.spu.promotion
  json.seven_day_back         sku.spu.seven_day_back
  json.genuine_product        sku.spu.genuine_product
  json.low_promotion_price    "#{@current_user.blank? ? sku.spu.protect_low_promotion_price : @current_user.computed_price(sku.spu.low_promotion_price)}"
  json.high_promotion_price   "#{@current_user.blank? ? sku.spu.protect_high_promotion_price : @current_user.computed_price(sku.spu.high_promotion_price)}"
  json.low_sale_price         "#{@current_user.blank? ? sku.spu.protect_low_sale_price : @current_user.computed_price(sku.spu.low_sale_price)}"
  json.high_sale_price        "#{@current_user.blank? ? sku.spu.protect_high_sale_price : @current_user.computed_price(sku.spu.high_sale_price)}"
  json.low_cost_price         "#{@current_user.blank? ? sku.spu.protect_low_cost_price : @current_user.computed_price(sku.spu.low_cost_price)}"
  json.high_cost_price        "#{@current_user.blank? ? sku.spu.protect_high_cost_price : @current_user.computed_price(sku.spu.high_cost_price)}"
  json.can_use_coupon         sku.spu.can_use_coupon
  json.favorited              @current_user.presence ? sku.spu.is_favorited?(@current_user.id) : false
  json.stock                  sku.spu.stock
  json.express_fee            "#{sku.spu.default_express_fee}"
  json.direct_sale            sku.spu.shop.direct_sale
end